<template>
  <div id="app">
    <el-container>
      <el-header>
        <el-menu mode="horizontal" :default-active="$route.path" router>
          <el-menu-item index="/">
            <el-icon><HomeFilled /></el-icon>
            <span>Find Partner</span>
          </el-menu-item>
          <el-menu-item index="/post/create">
            <el-icon><Plus /></el-icon>
            <span>发布活动</span>
          </el-menu-item>
        </el-menu>
      </el-header>

      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </div>
</template>

<script setup>
import { HomeFilled, Plus } from '@element-plus/icons-vue'
</script>

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#app {
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
}

.el-header {
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.el-main {
  padding: 20px;
  min-height: calc(100vh - 60px);
  background-color: #f5f5f5;
}
</style>